<html>
	<head>
		<title>Rapid Fall</title>
		<link rel="stylesheet" type="text/css" href="css/RapidFall.css" />
	</head>
	<body>
		<div id="messageContainer">
			<div id="message" class="hud">
				<h1>RapidFall</h1>
				<h2>a WebGL mini game</h2>
				<p>by <a target="blank" href="mailto:acasaccia@gmail.com">acasaccia@gmail.com</a></p>
				<div class="content">
					<p>Loading...</p>
					<img src="resources/loader.gif" />
				</div>
				<div class="credits">
					<p>Powered by <a href="">Three.js</a></p>
					<p><a href="http://oos.moxiecode.com/js_webgl/md2_converter/">MD2 to JSON converter</a> by <a href="http://oos.moxiecode.com/blog/">moxiecode.com</a></p>
				</div>
			</div>
		</div>
		<div id="background"></div>
		<div id="foreground"></div>
		<div id="score" class="hud">
			<div id="scoreText"></div>
			<div id="highScoreText"></div>
		</div>
		<script src="js/lib/three.min.js"></script>
		<script src="js/lib/detector.js"></script>
		<script src="js/lib/jquery-1.8.3.min.js"></script>
		<script src="js/lib/stats.min.js"></script>
		<script src="js/lib/soundmanager2-nodebug-jsmin.js"></script>
		<script src="js/RapidFall.js"></script>
		<script src="js/Constants.js"></script>
		<script src="js/Config.js"></script>
		<script src="js/Input.js"></script>
		<script src="js/GameObjects/GameObjects.js"></script>
		<script src="js/GameObjects/Platform.js"></script>
		<script src="js/GameObjects/Player.js"></script>
		<script src="js/GameState.js"></script>
		<script src="js/Loader.js"></script>
		<script src="js/Sound.js"></script>
		<script>
			$(document).ready(function(){
				var rf = new RapidFall({showFPS:true});
				RapidFall.Loader.load(function(){
					if (rf.initializeScene()) {
						RapidFall.Input.makeBindings();
						rf.initializeGameState();
						rf.mainloop();
						$('#message .content').load('templates/controls.html');
					} else {
						$('#message .content').html(Detector.getWebGLErrorMessage());
					}
				});
			});
		</script>
	</body>
</html>